package cn.sdhuijin.vms.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

@Entity
@Table(name = "t_message")
public class Message extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name;
	@Lob
	private String content;
	private Date time = new Date();

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Message() {
	}

	public Message(String name, String content) {
		super();
		this.name = name;
		this.content = content;
	}

}
